how to check uppercase or lowercase in javascript